<!--  -->
<template>
<div class='myResult-page'>
  <van-sticky>
    <c-title text="我的成绩" :hide="false" ></c-title>
    <van-search v-model="query.keyword" placeholder="输入学员姓名/手机号/活动名称" shape="round" @search="onSearch"  />
  </van-sticky>
  
  <div class="result-content" v-if="resultArr.length > 0">
    <block v-for="(item,index) in resultArr" :key="index">
      <result-item :itemObj="item" @examineClick="examineClick"></result-item>
    </block>
  </div>
  <van-empty
    class="custom-image"
    :image="host + 'event-registration/no-grades.png'"
    description="暂无相关成绩"
    v-else
  />
  <div class="mh-100"></div>

  <van-popup   :style="{ backgroundColor: 'transparent' }"  v-model="posterShow" @close="CloseBtn">
    <div class="serviceBox">
      <div class="poset-img">
        <div class="title">我的证书</div>
        <img :src="posterImg" />
      </div>
      
      <div class="posbox flex-j-c"  @click="CloseBtn">
        <span class="iconfont icon-adsystem_icon_cancle"></span>
      </div>
    </div>
  </van-popup>
</div>
</template>

<script>
import myResult_controller from './myResult_controller';
export default myResult_controller;
</script>
<style lang="scss" scoped>


/* @import url(); 引入公共css类 */
  .result-content {
    margin:0.625rem 0.75rem 0 0.75rem;
  }
  .mh-100 {
    height: 6.25rem;
    clear: both;
  }
  /* 客服弹窗 */
.serviceBox {
  width: 18.4375rem;
  // height: 25.6875rem;
  margin-bottom: 6.25rem;
  position: relative;
}
.poset-img {
  width: 18.4375rem;
  height: auto;
  // height: 25.6875rem;
  box-sizing: border-box;
  background-color: #fff;
  background: #FFFFFF;
  border-radius: 0.75rem 0.75rem 0.75rem 0.75rem; 
  padding:1.125rem 0.9375rem 1.125rem 0.9375rem;
}
.poset-img .title {
  font-weight: bold;
  font-size: 1rem;
  color: #00001C;
  padding:0 0 0.625rem 0;
  text-align: center;
}

.posbox {
  position: absolute;
  bottom: -5rem;
  width: 100%;
  text-align: center;
}

.posbox span {
  color: #fff;
  font-size: 3rem;
}

.serviceBox img {
  width: 100%;
  /* height: 100%; */
  // height: 21.6563rem;
  // border-radius: 0.9375rem;
}

.serviceBox .top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.serviceBox .top div {
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.0625rem;
  margin-top: 0.3125rem;
  display: flex;
  align-items: center;
}

.serviceBox .top span {
  position: absolute;
  top: -0.125rem;
  right: 1.25rem;
}

.serviceImg {
  width: 13.875rem;
  height: 13.875rem;
  margin-top: 2.5rem;
  margin-bottom: 0.7813rem;
}

.serviceImg img {
  width: 100%;
  height: 100%;
}

.service_guide {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5rem;
}

.close {
  height: 4rem;
  z-index: 120;
}
.close .icon-adsystem_icon_cancle {
  font-size: 3rem;
  color: #fff;
  width: 3rem;
  height: 3rem;
}

</style>
